load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("//tools:defaults.bzl", "ts_project")

package(default_visibility = ["//visibility:public"])

ts_project(
    name = "example-module-lib",
    srcs = glob(["**/*.ts"]),
    tsconfig = "//tools:tsconfig",
    deps = [
        "//:node_modules/typescript",
    ],
)

js_binary(
    name = "bazel-bin",
    data = [
        ":example-module.template",
        ":example-module-lib",
    ],
    entry_point = ":bazel-bin.js",
)
